package com.example.telesys.pojo;

import java.util.ArrayList;
import java.util.List;

public class TrafficExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TrafficExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceIsNull() {
            addCriterion("discountprice is null");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceIsNotNull() {
            addCriterion("discountprice is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceEqualTo(Integer value) {
            addCriterion("discountprice =", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceNotEqualTo(Integer value) {
            addCriterion("discountprice <>", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceGreaterThan(Integer value) {
            addCriterion("discountprice >", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountprice >=", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceLessThan(Integer value) {
            addCriterion("discountprice <", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceLessThanOrEqualTo(Integer value) {
            addCriterion("discountprice <=", value, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceIn(List<Integer> values) {
            addCriterion("discountprice in", values, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceNotIn(List<Integer> values) {
            addCriterion("discountprice not in", values, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceBetween(Integer value1, Integer value2) {
            addCriterion("discountprice between", value1, value2, "discountprice");
            return (Criteria) this;
        }

        public Criteria andDiscountpriceNotBetween(Integer value1, Integer value2) {
            addCriterion("discountprice not between", value1, value2, "discountprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceIsNull() {
            addCriterion("originalprice is null");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceIsNotNull() {
            addCriterion("originalprice is not null");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceEqualTo(Integer value) {
            addCriterion("originalprice =", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceNotEqualTo(Integer value) {
            addCriterion("originalprice <>", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceGreaterThan(Integer value) {
            addCriterion("originalprice >", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("originalprice >=", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceLessThan(Integer value) {
            addCriterion("originalprice <", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceLessThanOrEqualTo(Integer value) {
            addCriterion("originalprice <=", value, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceIn(List<Integer> values) {
            addCriterion("originalprice in", values, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceNotIn(List<Integer> values) {
            addCriterion("originalprice not in", values, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceBetween(Integer value1, Integer value2) {
            addCriterion("originalprice between", value1, value2, "originalprice");
            return (Criteria) this;
        }

        public Criteria andOriginalpriceNotBetween(Integer value1, Integer value2) {
            addCriterion("originalprice not between", value1, value2, "originalprice");
            return (Criteria) this;
        }

        public Criteria andSupplieridIsNull() {
            addCriterion("supplierid is null");
            return (Criteria) this;
        }

        public Criteria andSupplieridIsNotNull() {
            addCriterion("supplierid is not null");
            return (Criteria) this;
        }

        public Criteria andSupplieridEqualTo(String value) {
            addCriterion("supplierid =", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotEqualTo(String value) {
            addCriterion("supplierid <>", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridGreaterThan(String value) {
            addCriterion("supplierid >", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridGreaterThanOrEqualTo(String value) {
            addCriterion("supplierid >=", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLessThan(String value) {
            addCriterion("supplierid <", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLessThanOrEqualTo(String value) {
            addCriterion("supplierid <=", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLike(String value) {
            addCriterion("supplierid like", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotLike(String value) {
            addCriterion("supplierid not like", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridIn(List<String> values) {
            addCriterion("supplierid in", values, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotIn(List<String> values) {
            addCriterion("supplierid not in", values, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridBetween(String value1, String value2) {
            addCriterion("supplierid between", value1, value2, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotBetween(String value1, String value2) {
            addCriterion("supplierid not between", value1, value2, "supplierid");
            return (Criteria) this;
        }

        public Criteria andTrafficidIsNull() {
            addCriterion("trafficid is null");
            return (Criteria) this;
        }

        public Criteria andTrafficidIsNotNull() {
            addCriterion("trafficid is not null");
            return (Criteria) this;
        }

        public Criteria andTrafficidEqualTo(String value) {
            addCriterion("trafficid =", value, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidNotEqualTo(String value) {
            addCriterion("trafficid <>", value, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidGreaterThan(String value) {
            addCriterion("trafficid >", value, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidGreaterThanOrEqualTo(String value) {
            addCriterion("trafficid >=", value, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidLessThan(String value) {
            addCriterion("trafficid <", value, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidLessThanOrEqualTo(String value) {
            addCriterion("trafficid <=", value, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidLike(String value) {
            addCriterion("trafficid like", value, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidNotLike(String value) {
            addCriterion("trafficid not like", value, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidIn(List<String> values) {
            addCriterion("trafficid in", values, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidNotIn(List<String> values) {
            addCriterion("trafficid not in", values, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidBetween(String value1, String value2) {
            addCriterion("trafficid between", value1, value2, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficidNotBetween(String value1, String value2) {
            addCriterion("trafficid not between", value1, value2, "trafficid");
            return (Criteria) this;
        }

        public Criteria andTrafficnameIsNull() {
            addCriterion("trafficname is null");
            return (Criteria) this;
        }

        public Criteria andTrafficnameIsNotNull() {
            addCriterion("trafficname is not null");
            return (Criteria) this;
        }

        public Criteria andTrafficnameEqualTo(String value) {
            addCriterion("trafficname =", value, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameNotEqualTo(String value) {
            addCriterion("trafficname <>", value, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameGreaterThan(String value) {
            addCriterion("trafficname >", value, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameGreaterThanOrEqualTo(String value) {
            addCriterion("trafficname >=", value, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameLessThan(String value) {
            addCriterion("trafficname <", value, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameLessThanOrEqualTo(String value) {
            addCriterion("trafficname <=", value, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameLike(String value) {
            addCriterion("trafficname like", value, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameNotLike(String value) {
            addCriterion("trafficname not like", value, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameIn(List<String> values) {
            addCriterion("trafficname in", values, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameNotIn(List<String> values) {
            addCriterion("trafficname not in", values, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameBetween(String value1, String value2) {
            addCriterion("trafficname between", value1, value2, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTrafficnameNotBetween(String value1, String value2) {
            addCriterion("trafficname not between", value1, value2, "trafficname");
            return (Criteria) this;
        }

        public Criteria andTraffictitleIsNull() {
            addCriterion("traffictitle is null");
            return (Criteria) this;
        }

        public Criteria andTraffictitleIsNotNull() {
            addCriterion("traffictitle is not null");
            return (Criteria) this;
        }

        public Criteria andTraffictitleEqualTo(String value) {
            addCriterion("traffictitle =", value, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleNotEqualTo(String value) {
            addCriterion("traffictitle <>", value, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleGreaterThan(String value) {
            addCriterion("traffictitle >", value, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleGreaterThanOrEqualTo(String value) {
            addCriterion("traffictitle >=", value, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleLessThan(String value) {
            addCriterion("traffictitle <", value, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleLessThanOrEqualTo(String value) {
            addCriterion("traffictitle <=", value, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleLike(String value) {
            addCriterion("traffictitle like", value, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleNotLike(String value) {
            addCriterion("traffictitle not like", value, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleIn(List<String> values) {
            addCriterion("traffictitle in", values, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleNotIn(List<String> values) {
            addCriterion("traffictitle not in", values, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleBetween(String value1, String value2) {
            addCriterion("traffictitle between", value1, value2, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictitleNotBetween(String value1, String value2) {
            addCriterion("traffictitle not between", value1, value2, "traffictitle");
            return (Criteria) this;
        }

        public Criteria andTraffictypeIsNull() {
            addCriterion("traffictype is null");
            return (Criteria) this;
        }

        public Criteria andTraffictypeIsNotNull() {
            addCriterion("traffictype is not null");
            return (Criteria) this;
        }

        public Criteria andTraffictypeEqualTo(String value) {
            addCriterion("traffictype =", value, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeNotEqualTo(String value) {
            addCriterion("traffictype <>", value, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeGreaterThan(String value) {
            addCriterion("traffictype >", value, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeGreaterThanOrEqualTo(String value) {
            addCriterion("traffictype >=", value, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeLessThan(String value) {
            addCriterion("traffictype <", value, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeLessThanOrEqualTo(String value) {
            addCriterion("traffictype <=", value, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeLike(String value) {
            addCriterion("traffictype like", value, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeNotLike(String value) {
            addCriterion("traffictype not like", value, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeIn(List<String> values) {
            addCriterion("traffictype in", values, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeNotIn(List<String> values) {
            addCriterion("traffictype not in", values, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeBetween(String value1, String value2) {
            addCriterion("traffictype between", value1, value2, "traffictype");
            return (Criteria) this;
        }

        public Criteria andTraffictypeNotBetween(String value1, String value2) {
            addCriterion("traffictype not between", value1, value2, "traffictype");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}